main: main.o v4l2_csi.o  socket_serve.o                         
	gcc  main.o v4l2_csi.o socket_serve.o -o main

main.o: main.c
	gcc -c main.c

v4l2_csi.o: v4l2_csi.c
	gcc -c v4l2_csi.c

socket_serve.o: socket_serve.c
	gcc -c socket_serve.c
	
clean:
	rm *.o
	rm main

